{% for first_menu in menu %}
    <div class="item">
        <!-- 一级菜单 -->
        <div class="first-menu">
            <i class="fa {{ first_menu.icon }}"></i>
            <span>{{ first_menu.title }}</span>
        </div>
        <div class="children">
            {% for child in first_menu.children %}
                <!-- 二级菜单 -->
                <div class="sub-menu {{ child.class }}">
                    <a href="{% url child.name %}">{{ child.text }}</a>
                </div>
            {% endfor %}
        </div>
    </div>
{% endfor %}

